package com.dianping.cat.home.service.client.entity;

import com.dianping.cat.home.service.client.BaseEntity;
import com.dianping.cat.home.service.client.IVisitor;












public class Method
  extends BaseEntity<Method>
{
  private String m_id;
  private String m_service;
  private long m_totalCount;
  private long m_failureCount;
  private double m_failurePercent;
  private double m_sum;
  private double m_avg;
  private double m_qps;
  private double m_timeout;

  public Method() {}

  public Method(String id) { this.m_id = id; }




/*  37 */   public void accept(IVisitor visitor) { visitor.visitMethod(this); }



  public boolean equals(Object obj) {
/*  42 */     if (obj instanceof Method) {
/*  43 */       Method _o = (Method)obj;

/*  45 */       if (!equals(getId(), _o.getId())) {
/*  46 */         return false;
      }

/*  49 */       return true;
    }

/*  52 */     return false;
  }


/*  56 */   public double getAvg() { return this.m_avg; }



/*  60 */   public long getFailureCount() { return this.m_failureCount; }



/*  64 */   public double getFailurePercent() { return this.m_failurePercent; }



/*  68 */   public String getId() { return this.m_id; }



/*  72 */   public double getQps() { return this.m_qps; }



/*  76 */   public String getService() { return this.m_service; }



/*  80 */   public double getSum() { return this.m_sum; }



/*  84 */   public double getTimeout() { return this.m_timeout; }



/*  88 */   public long getTotalCount() { return this.m_totalCount; }



  public int hashCode() {
/*  93 */     int hash = 0;

    return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }



  public Method incFailureCount() {
/* 101 */     this.m_failureCount++;
/* 102 */     return this;
  }

  public Method incFailureCount(long failureCount) {
/* 106 */     this.m_failureCount += failureCount;
/* 107 */     return this;
  }

  public Method incSum() {
/* 111 */     this.m_sum++;
/* 112 */     return this;
  }

  public Method incSum(double sum) {
/* 116 */     this.m_sum += sum;
/* 117 */     return this;
  }

  public Method incTotalCount() {
/* 121 */     this.m_totalCount++;
/* 122 */     return this;
  }

  public Method incTotalCount(long totalCount) {
/* 126 */     this.m_totalCount += totalCount;
/* 127 */     return this;
  }


  public void mergeAttributes(Method other) {
/* 132 */     assertAttributeEquals(other, "method", "id", this.m_id, other.getId());

/* 134 */     if (other.getService() != null) {
/* 135 */       this.m_service = other.getService();
    }

/* 138 */     this.m_totalCount = other.getTotalCount();

/* 140 */     this.m_failureCount = other.getFailureCount();

/* 142 */     this.m_failurePercent = other.getFailurePercent();

/* 144 */     this.m_sum = other.getSum();

/* 146 */     this.m_avg = other.getAvg();

/* 148 */     this.m_qps = other.getQps();

/* 150 */     this.m_timeout = other.getTimeout();
  }

  public Method setAvg(double avg) {
/* 154 */     this.m_avg = avg;
/* 155 */     return this;
  }

  public Method setFailureCount(long failureCount) {
/* 159 */     this.m_failureCount = failureCount;
/* 160 */     return this;
  }

  public Method setFailurePercent(double failurePercent) {
/* 164 */     this.m_failurePercent = failurePercent;
/* 165 */     return this;
  }

  public Method setId(String id) {
/* 169 */     this.m_id = id;
/* 170 */     return this;
  }

  public Method setQps(double qps) {
/* 174 */     this.m_qps = qps;
/* 175 */     return this;
  }

  public Method setService(String service) {
/* 179 */     this.m_service = service;
/* 180 */     return this;
  }

  public Method setSum(double sum) {
/* 184 */     this.m_sum = sum;
/* 185 */     return this;
  }

  public Method setTimeout(double timeout) {
/* 189 */     this.m_timeout = timeout;
/* 190 */     return this;
  }

  public Method setTotalCount(long totalCount) {
/* 194 */     this.m_totalCount = totalCount;
/* 195 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/service/client/entity/Method.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */